package com.ftar.urgent.voice;

import com.ftar.voicecommand.FTOfflineWords;
import com.ftar.voicecommand.FTVoiceEngine;

import java.util.ArrayList;

/**
 * @author: wei.jin
 * @date: 2023/6/2
 * @email: wei.jin@fanttec.com
 * @description：
 */
public class OfflineWords {

    public static FTOfflineWords[] getFTOfflineWords(FTVoiceEngine.FTOfflineCommandCallback callback) {
        ArrayList<FTOfflineWords> wordsList = new ArrayList<>();

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_PHOTO_SEND,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_PHOTO_SEND,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_THINGS_SEND,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_THINGS_SEND,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_CHOOSE_CATALOG,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_CHOOSE_CATALOG,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_RE_VOICE,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_RE_VOICE,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_SEND,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_SEND,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_RE_TAKE_PHOTO,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_RE_TAKE_PHOTO,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_RECORD_AUDIO,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_RECORD_AUDIO,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CAPTURE_TAKE_PHOTO,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CAPTURE_TAKE_PHOTO,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.GLOBAL_BACK,
                        OffLineVoiceCmd.OfflineVoice_pinyin.GLOBAL_BACK,
                        callback
                )
        );
        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.GLOBAL_PAGE_PRE,
                        OffLineVoiceCmd.OfflineVoice_pinyin.GLOBAL_PAGE_PRE,
                        callback
                )
        );
        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.GLOBAL_PAGE_NEXT,
                        OffLineVoiceCmd.OfflineVoice_pinyin.GLOBAL_PAGE_NEXT,
                        callback
                )
        );
        wordsList.add(
             new FTOfflineWords(
                     OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_1,
                     OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_1,
                     callback
             )
        );

        wordsList.add(
               new FTOfflineWords(
                       OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_2,
                       OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_2,
                       callback
               )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_3,
                        OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_3,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_4,
                        OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_4,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_5,
                        OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_5,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_6,
                        OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_6,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_7,
                        OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_7,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_8,
                        OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_8,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.SETTING_SELECT_PROJECT_9,
                        OffLineVoiceCmd.OfflineVoice_pinyin.SETTING_SELECT_PROJECT_9,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.GLOBAL_EMERGENCY_CALL,
                        OffLineVoiceCmd.OfflineVoice_pinyin.GLOBAL_EMERGENCY_CALL,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.GLOBAL_MORE,
                        OffLineVoiceCmd.OfflineVoice_pinyin.GLOBAL_MORE,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.CHECK_END,
                        OffLineVoiceCmd.OfflineVoice_pinyin.CHECK_END,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.GLOBAL_END,
                        OffLineVoiceCmd.OfflineVoice_pinyin.GLOBAL_END,
                        callback
                )
        );

        wordsList.add(
                new FTOfflineWords(
                        OffLineVoiceCmd.OfflineVoice.GLOBAL_BACK_DESKTOP,
                        OffLineVoiceCmd.OfflineVoice_pinyin.GLOBAL_BACK_DESKTOP,
                        callback
                )
        );

        return wordsList.toArray(new FTOfflineWords[0]);
    }
}
